//=============================================================================
// Sample Application for GLEW, and cwc Application/Window class using freeglut
//=============================================================================

#include <GL/glew.h>
#include <GL/freeglut.h>
#include <myApplication.h>
#include <myWindow.h>
#include <iostream>

//-----------------------------------------------------------------------------



//-----------------------------------------------------------------------------


//-----------------------------------------------------------------------------

int main(void)
{
	myApplication*  pApp = new myApplication;
	myWindow* myWin = new myWindow();

	std::cout << "GL version: " << glGetString(GL_VERSION) << std::endl;

	const GLubyte* shading = glGetString(GL_SHADING_LANGUAGE_VERSION);
	GLenum err = glGetError();
	if (err == GL_NO_ERROR){
		std::cout << "GLSL version: " << shading << std::endl;
	}

	std::cout << "Using GLEW Version: " << glewGetString(GLEW_VERSION) << std::endl;

	system("pause");

	return 0;
}

//-----------------------------------------------------------------------------

